package safeCommitter.core.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import safeCommitter.core.template.Activator;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	@Override
	public void initializeDefaultPreferences() {
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();
		store.setDefault(SCPreferenceConstants.P_ALLOW_BLANK_COMMENTS, false);
		store.setDefault(SCPreferenceConstants.P_PERFORM_SEARCH, true);
		store.setDefault(SCPreferenceConstants.P_TESTNG_XML_PATH,
				"src/test/resources/SCtestng-unit.xml");
		store.setDefault(SCPreferenceConstants.P_ADD_TESTNG_XML, false);

	}

}
